'use strict';

module.exports = function collectSameElements(collectionA, objectB) {
 let arr=new Array();
 let arr1=new Array();
arr=objectB.value;
for(let i of collectionA)
 for(let j of arr){
 if(i==j)
 arr1.push(i);}
 return arr1;
}
